package com.school.appleforgetbackend.service.mock;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

@Service
@ConditionalOnProperty(prefix = "mock.service", name = "user", havingValue = "true")
public class MockUserService implements MockService {
    @Override
    public String getMockUser(Long userId) {
        // 真实的业务逻辑，例如查询数据库
        return "Mock User Name for ID: " + userId;
    }
}
